<template>
  <div id="app">
     <tar-bar v-if="this.$route.meta.isNav"></tar-bar>
     <fade>
    <router-view/>
    </fade>
  </div>
 
</template>
<script>
import Fade from './components/Fade.vue'
import TarBar from'@/components/TarBar.vue'

export default {
  components:{
  TarBar,
  Fade
  },
  methods:{
  
  },
  mounted(){
    console.log(this.$route);
  },
  computed:{
    isShow(){
      return this.$route.meta.isNav
    }
  }
}
</script>
<style>
#app {
  width: 10rem;
  /* margin-left: auto;
  margin-right: auto; */
  /* background: red; */
}
</style>
